//
//  SignInDetailCell.m
//  MY Project For Sport
//
//  Created by admin on 16/2/13.
//  Copyright © 2016年 dilo. All rights reserved.
//

#import "SignInDetailCell.h"
#import <DKNightVersion.h>

#define WEIGHTT [UIScreen mainScreen].bounds.size.width / 375
#define HEIGHTT [UIScreen mainScreen].bounds.size.height / 667


@interface SignInDetailCell ()

@property (nonatomic, retain)UILabel *label;

@end

@implementation SignInDetailCell

- (void)dealloc {

    [_label release];
    [super dealloc];

}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {


    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        self.contentView.dk_backgroundColorPicker = DKColorWithRGB(0xffffff, 0x343434);

        [self createSubView];
        
    }

    return self;


}


- (void)createSubView {

    self.label = [[UILabel alloc] init];
    [self.contentView addSubview:self.label];
    [_label release];


}
- (void)layoutSubviews {

    [super layoutSubviews];
    
    
    self.label.text = @"查看全部 >";
    
    self.label.textColor = [UIColor redColor];
    
    self.label.frame = CGRectMake(0, 0, self.contentView.frame.size.width / 2, self.contentView.frame.size.height - 20 * HEIGHTT);
    self.label.center = self.contentView.center;
    self.label.textAlignment = NSTextAlignmentCenter;


}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
